Floating Panels > The floating panel API > initialTabs()

 

initialTabs()

Description

Determines which other floating panels are tabbed together with this one the first time the floating panel appears. If any listed floating panel has appeared previously, it is not included in the tab group. Thus, to ensure that two custom floating panels are tabbed together, each should reference the other in each initialTabs() function.

Arguments

None.

Returns

A string of the form "floaterName1,floaterName2,...floaterNameN".

Example

The following instance of initialTabs() specifies that the first time the floating panel appears, it should be tabbed together with the scriptEditor floating panel:

function initialTabs(){
	return "scriptEditor";
}